package com.hugboy.api;
import java.util.Scanner;

public class Demo2Scanner {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        System.out.println("请输入整数：");
        final int i = sc.nextInt();

        System.out.println("请输入字符串：");
        final String s = sc.next();

        System.out.println(i);
        System.out.println(s);
    }
}
